﻿using Application.AppService.Config;
using AutoMapper;
using Domain;
using Domain.Repository.IConfig;
using Microsoft.AspNetCore.Mvc;

namespace UI.Controllers.MoKuaiYi_第一个模块_.resume_management_简历管理_
{
    public class ERSSController : Controller
    {
        private readonly IMapper mapper;
        private readonly IEngage_resumeRepository eRAppService;

        public ERSSController(IMapper mapper, IEngage_resumeRepository eRAppService)
        {
            this.mapper = mapper;
            this.eRAppService = eRAppService;
        }
        public IActionResult Index()
        {
            return View();
        }
        public IActionResult Index1()
        {
            return View();
        }
        public IActionResult Index2()
        {
            return View();
        }


        [HttpPost("FYERSS")]
        public IActionResult FYERSS(string Human_major_kind_id, string Human_major_id, string gzc, DateTime startDate, DateTime endDate, int page, int pageSize)
        {
            ERFenYE erFenYE = eRAppService.DateERSSAsync(Human_major_kind_id, Human_major_id,gzc,startDate,endDate,page,pageSize,2,1);
            return Json(erFenYE);
        }
    }
}
